package com.yaodian100.ec.supplierapply.web;

import java.util.Date;
import java.util.List;

import javax.annotation.Resource;

import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.userdetails.UserDetails;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.Preparable;
import com.yaodian100.core.admin.entity.Role;
import com.yaodian100.core.admin.entity.User;
import com.yaodian100.core.admin.service.UserService;
import com.yaodian100.core.admin.utils.AdminHelper;
import com.yaodian100.core.common.dao.impl.CommonCriteria;
import com.yaodian100.core.common.exception.CoreException;
import com.yaodian100.core.common.service.DomainService;
import com.yaodian100.core.common.utils.JspUtil;
import com.yaodian100.core.menu.entity.Menu;
import com.yaodian100.ec.product.service.ProductService;
import com.yaodian100.ec.supplierapply.entity.BOToWHDate;
import com.yaodian100.ec.supplierapply.entity.SupplierApply;
import com.yaodian100.ec.supplierapply.service.BOToWHDateService;
import com.yaodian100.ec.supplierapply.service.SupplierApplyService;

/**
 * @author Andy.Chuang
 * 
 */
public class SupplierApplyAction extends ActionSupport implements Preparable {
	private final Logger logger = LoggerFactory.getLogger(SupplierApplyAction.class);
	@Resource(name = "supplierApplyService")
	private SupplierApplyService supplierApplyService;
	@Resource
	private DomainService<Menu> menuService;
	private String companyNum;

	private String companyName;

	private String ownerName;

	private String ownerID;

	private String companyPhone;

	private String companyFax;

	private String companyAddress;

	private String invoiceTitle;

	private String invoiceAddress;

	private String contactName;

	private String contactAddress;

	private String contactPhone;

	private String contactFax;

	private String contactEmail;

	private String serviceName;

	private String serviceAddress;

	private String servicePhone;

	private String serviceFax;

	private String serviceEmail;

	private String industry;

	private String groupID;

	private String groupName;

	private String paymentTerm;

	private String paymentCurrency;

	private String agent;

	private String area;

	private String incoterm;

	private String pricingDataCatrgory;

	private String bankName;

	private String bankAccountName;
	private String bankAccountNum;

	private Integer approveStatus;

	private String approveBy;

	private Integer status;

	private String memo;
	private String supplierID;
	private String serviceHours;
	private String serviceMemo;
	private String taxInvoice;
	private String invoicePercent;

	private String province;
	private String city;
	private String district;
	private String shipContact;
	private String shipZip;
	private String shipAddr;
	private String shipPhone;
	private String isScm;

	@Resource(name = "bOToWHDateService")
	private BOToWHDateService bOToWHDateService;

	private String coprovince;
	private String cocity;
	private String codistrict;
	private String cozip;
	private String boToWHDate;// BO到倉天數
	private String poType;// 採購類別：O：買斷;V：寄售
	private String jsonResult;
	private List<User> users;
	private Menu paymentBankAreaMenu;// 付款銀行所在地
	private String paymentBankArea;
	@Resource
	private UserService userService;
	private String pm;
	private CommonCriteria criteria;
	@Resource
	private ProductService productservice;

	private String isSelfShip;
	private String isReturnSupplier;
	private String returnContact;
	private String returnProvince;
	private String returnCity;
	private String returnArea;
	private String returnAddr;
	private String returnZip;
	private String returnPhone;

	/**
	 * @return the taxInvoice
	 */
	public String getTaxInvoice() {
		return taxInvoice;
	}

	/**
	 * @param taxInvoice the taxInvoice to set
	 */
	public void setTaxInvoice(String taxInvoice) {
		this.taxInvoice = taxInvoice;
	}

	/**
	 * @return the invoicePercent
	 */
	public String getInvoicePercent() {
		return invoicePercent;
	}

	/**
	 * @param invoicePercent the invoicePercent to set
	 */
	public void setInvoicePercent(String invoicePercent) {
		this.invoicePercent = invoicePercent;
	}

	/**
	 * @return the serviceHours
	 */
	public String getServiceHours() {
		return serviceHours;
	}

	/**
	 * @param serviceHours the serviceHours to set
	 */
	public void setServiceHours(String serviceHours) {
		this.serviceHours = serviceHours;
	}

	/**
	 * @return the supplierApplyService
	 */
	public SupplierApplyService getSupplierApplyService() {
		return supplierApplyService;
	}

	/**
	 * @param supplierApplyService the supplierApplyService to set
	 */
	public void setSupplierApplyService(SupplierApplyService supplierApplyService) {
		this.supplierApplyService = supplierApplyService;
	}

	/**
	 * @return the serviceMemo
	 */
	public String getServiceMemo() {
		return serviceMemo;
	}

	/**
	 * @param serviceMemo the serviceMemo to set
	 */
	public void setServiceMemo(String serviceMemo) {
		this.serviceMemo = serviceMemo;
	}

	/**
	 * @return the supplierID
	 */
	public String getSupplierID() {
		return supplierID;
	}

	/**
	 * @param supplierID the supplierID to set
	 */
	public void setSupplierID(String supplierID) {
		this.supplierID = supplierID;
	}

	/**
	 * @return the companyNum
	 */
	public String getCompanyNum() {
		return companyNum;
	}

	/**
	 * @param companyNum the companyNum to set
	 */
	public void setCompanyNum(String companyNum) {
		this.companyNum = companyNum;
	}

	/**
	 * @return the companyName
	 */
	public String getCompanyName() {
		return companyName;
	}

	/**
	 * @param companyName the companyName to set
	 */
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	/**
	 * @return the ownerName
	 */
	public String getOwnerName() {
		return ownerName;
	}

	/**
	 * @param ownerName the ownerName to set
	 */
	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}

	/**
	 * @return the ownerID
	 */
	public String getOwnerID() {
		return ownerID;
	}

	/**
	 * @param ownerID the ownerID to set
	 */
	public void setOwnerID(String ownerID) {
		this.ownerID = ownerID;
	}

	/**
	 * @return the companyPhone
	 */
	public String getCompanyPhone() {
		return companyPhone;
	}

	/**
	 * @param companyPhone the companyPhone to set
	 */
	public void setCompanyPhone(String companyPhone) {
		this.companyPhone = companyPhone;
	}

	/**
	 * @return the companyFax
	 */
	public String getCompanyFax() {
		return companyFax;
	}

	/**
	 * @param companyFax the companyFax to set
	 */
	public void setCompanyFax(String companyFax) {
		this.companyFax = companyFax;
	}

	/**
	 * @return the companyAddress
	 */
	public String getCompanyAddress() {
		return companyAddress;
	}

	/**
	 * @param companyAddress the companyAddress to set
	 */
	public void setCompanyAddress(String companyAddress) {
		this.companyAddress = companyAddress;
	}

	/**
	 * @return the invoiceTitle
	 */
	public String getInvoiceTitle() {
		return invoiceTitle;
	}

	/**
	 * @param invoiceTitle the invoiceTitle to set
	 */
	public void setInvoiceTitle(String invoiceTitle) {
		this.invoiceTitle = invoiceTitle;
	}

	/**
	 * @return the invoiceAddress
	 */
	public String getInvoiceAddress() {
		return invoiceAddress;
	}

	/**
	 * @param invoiceAddress the invoiceAddress to set
	 */
	public void setInvoiceAddress(String invoiceAddress) {
		this.invoiceAddress = invoiceAddress;
	}

	/**
	 * @return the contactName
	 */
	public String getContactName() {
		return contactName;
	}

	/**
	 * @param contactName the contactName to set
	 */
	public void setContactName(String contactName) {
		this.contactName = contactName;
	}

	/**
	 * @return the contactAddress
	 */
	public String getContactAddress() {
		return contactAddress;
	}

	/**
	 * @param contactAddress the contactAddress to set
	 */
	public void setContactAddress(String contactAddress) {
		this.contactAddress = contactAddress;
	}

	/**
	 * @return the contactPhone
	 */
	public String getContactPhone() {
		return contactPhone;
	}

	/**
	 * @param contactPhone the contactPhone to set
	 */
	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}

	/**
	 * @return the contactFax
	 */
	public String getContactFax() {
		return contactFax;
	}

	/**
	 * @param contactFax the contactFax to set
	 */
	public void setContactFax(String contactFax) {
		this.contactFax = contactFax;
	}

	/**
	 * @return the contactEmail
	 */
	public String getContactEmail() {
		return contactEmail;
	}

	/**
	 * @param contactEmail the contactEmail to set
	 */
	public void setContactEmail(String contactEmail) {
		this.contactEmail = contactEmail;
	}

	/**
	 * @return the serviceName
	 */
	public String getServiceName() {
		return serviceName;
	}

	/**
	 * @param serviceName the serviceName to set
	 */
	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}

	/**
	 * @return the serviceAddress
	 */
	public String getServiceAddress() {
		return serviceAddress;
	}

	/**
	 * @param serviceAddress the serviceAddress to set
	 */
	public void setServiceAddress(String serviceAddress) {
		this.serviceAddress = serviceAddress;
	}

	/**
	 * @return the servicePhone
	 */
	public String getServicePhone() {
		return servicePhone;
	}

	/**
	 * @param servicePhone the servicePhone to set
	 */
	public void setServicePhone(String servicePhone) {
		this.servicePhone = servicePhone;
	}

	/**
	 * @return the serviceFax
	 */
	public String getServiceFax() {
		return serviceFax;
	}

	/**
	 * @param serviceFax the serviceFax to set
	 */
	public void setServiceFax(String serviceFax) {
		this.serviceFax = serviceFax;
	}

	/**
	 * @return the serviceEmail
	 */
	public String getServiceEmail() {
		return serviceEmail;
	}

	/**
	 * @param serviceEmail the serviceEmail to set
	 */
	public void setServiceEmail(String serviceEmail) {
		this.serviceEmail = serviceEmail;
	}

	/**
	 * @return the industry
	 */
	public String getIndustry() {
		return industry;
	}

	/**
	 * @param industry the industry to set
	 */
	public void setIndustry(String industry) {
		this.industry = industry;
	}

	/**
	 * @return the groupID
	 */
	public String getGroupID() {
		return groupID;
	}

	/**
	 * @param groupID the groupID to set
	 */
	public void setGroupID(String groupID) {
		this.groupID = groupID;
	}

	/**
	 * @return the groupName
	 */
	public String getGroupName() {
		return groupName;
	}

	/**
	 * @param groupName the groupName to set
	 */
	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	/**
	 * @return the paymentTerm
	 */
	public String getPaymentTerm() {
		return paymentTerm;
	}

	/**
	 * @param paymentTerm the paymentTerm to set
	 */
	public void setPaymentTerm(String paymentTerm) {
		this.paymentTerm = paymentTerm;
	}

	/**
	 * @return the paymentCurrency
	 */
	public String getPaymentCurrency() {
		return paymentCurrency;
	}

	/**
	 * @param paymentCurrency the paymentCurrency to set
	 */
	public void setPaymentCurrency(String paymentCurrency) {
		this.paymentCurrency = paymentCurrency;
	}

	/**
	 * @return the agent
	 */
	public String getAgent() {
		return agent;
	}

	/**
	 * @param agent the agent to set
	 */
	public void setAgent(String agent) {
		this.agent = agent;
	}

	/**
	 * @return the area
	 */
	public String getArea() {
		return area;
	}

	/**
	 * @param area the area to set
	 */
	public void setArea(String area) {
		this.area = area;
	}

	/**
	 * @return the incoterm
	 */
	public String getIncoterm() {
		return incoterm;
	}

	/**
	 * @param incoterm the incoterm to set
	 */
	public void setIncoterm(String incoterm) {
		this.incoterm = incoterm;
	}

	/**
	 * @return the pricingDataCatrgory
	 */
	public String getPricingDataCatrgory() {
		return pricingDataCatrgory;
	}

	/**
	 * @param pricingDataCatrgory the pricingDataCatrgory to set
	 */
	public void setPricingDataCatrgory(String pricingDataCatrgory) {
		this.pricingDataCatrgory = pricingDataCatrgory;
	}

	/**
	 * @return the bankName
	 */
	public String getBankName() {
		return bankName;
	}

	/**
	 * @param bankName the bankName to set
	 */
	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	/**
	 * @return the bankAccountName
	 */
	public String getBankAccountName() {
		return bankAccountName;
	}

	/**
	 * @param bankAccountName the bankAccountName to set
	 */
	public void setBankAccountName(String bankAccountName) {
		this.bankAccountName = bankAccountName;
	}

	/**
	 * @return the bankAccountNum
	 */
	public String getBankAccountNum() {
		return bankAccountNum;
	}

	/**
	 * @param bankAccountNum the bankAccountNum to set
	 */
	public void setBankAccountNum(String bankAccountNum) {
		this.bankAccountNum = bankAccountNum;
	}

	/**
	 * @return the approveStatus
	 */
	public Integer getApproveStatus() {
		return approveStatus;
	}

	/**
	 * @param approveStatus the approveStatus to set
	 */
	public void setApproveStatus(Integer approveStatus) {
		this.approveStatus = approveStatus;
	}

	/**
	 * @return the approveBy
	 */
	public String getApproveBy() {
		return approveBy;
	}

	/**
	 * @param approveBy the approveBy to set
	 */
	public void setApproveBy(String approveBy) {
		this.approveBy = approveBy;
	}

	/**
	 * @return the status
	 */
	public Integer getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}

	/**
	 * @return the memo
	 */
	public String getMemo() {
		return memo;
	}

	/**
	 * @param memo the memo to set
	 */
	public void setMemo(String memo) {
		this.memo = memo;
	}

	@Override
	public String execute() throws Exception {
		return SUCCESS;
	}

	public String page() {
		if (supplierID != null && supplierID.length() > 0) {
			SupplierApply sa = supplierApplyService.get(supplierID);
			setPm(sa.getDevPmId());
		}
		return iamlazy;
	}

	public String apply() {
		update();
		return "apply";
	}

	public String approve() {
		try {
			UserDetails user = AdminHelper.getUserDetails();
			SupplierApply sa = supplierApplyService.get(supplierID);
			sa.setApproveStatus(1);
			sa.setModifyUser(user.getUsername());
			sa.setApproveBy(user.getUsername());
			supplierApplyService.update(sa);
		} catch (CoreException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			throw new RuntimeException(e);
		}
		return "approve";
	}

	public String activate() {
		try {
			UserDetails user = AdminHelper.getUserDetails();
			SupplierApply sa = supplierApplyService.get(supplierID);
			sa.setStatus(1);
			sa.setModifyUser(user.getUsername());
			supplierApplyService.update(sa);
		} catch (CoreException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			throw new RuntimeException(e);
		}
		return "activate";
	}

	public String suspend() {
		try {
			UserDetails user = AdminHelper.getUserDetails();
			SupplierApply sa = supplierApplyService.get(supplierID);
			sa.setStatus(0);
			sa.setModifyUser(user.getUsername());
			supplierApplyService.update(sa);
		} catch (CoreException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			throw new RuntimeException(e);
		}

		return "suspend";
	}

	public static void main(String args[]) {
		String str = "123\r\n456";

		// System.out.println(str);
		// System.out.println(skipRN(str));
	}

	private String skipRN(String str) {
		String result = null;
		if (str != null) {
			result = str.replaceAll("\r\n", "").replaceAll("\r", "").replaceAll("\n", "");
		}
		return result;
	}

	public String update() {
		try {
			SupplierApply sa = null;
			Date createDate = new Date();
			UserDetails user = AdminHelper.getUserDetails();
			if (supplierID != null && supplierID.length() > 0) {
				sa = supplierApplyService.get(supplierID);
				// update
				sa.setModifyUser(user.getUsername());
			} else {
				sa = new SupplierApply();
				sa.setStatus(1);
				sa.setApproveStatus(0);
				sa.setCreateUser(user.getUsername());
				sa.setCreateDate(createDate);
				sa.setBankAccountName(skipRN(bankAccountName));
				sa.setBankAccountNum(skipRN(bankAccountNum));
				sa.setBankName(skipRN(bankName));
				sa.setPaymentBankArea(skipRN(paymentBankArea));
			}
			sa.setTaxInvoice(skipRN(taxInvoice));
			invoicePercent = JspUtil.menuOption("Supplier.invoicePercent", taxInvoice).getName();
			sa.setInvoicePercent(Integer.parseInt(skipRN(invoicePercent)));
			sa.setCompanyNum(skipRN(companyNum));
			sa.setCompanyName(skipRN(companyName));
			sa.setOwnerName(skipRN(ownerName));
			sa.setAgent(skipRN(agent));
			// sa.setApproveBy(approveBy);

			sa.setArea(skipRN(area));
			// sa.setBankAccountName(bankAccountName);
			// sa.setBankAccountNum(bankAccountNum);
			// sa.setBankName(bankName);
			sa.setCompanyAddress(skipRN(companyAddress));
			sa.setCompanyFax(skipRN(companyFax));
			sa.setContactAddress(skipRN(contactAddress));
			sa.setCompanyPhone(skipRN(companyPhone));
			sa.setContactEmail(skipRN(contactEmail));
			sa.setContactFax(skipRN(contactFax));
			sa.setContactName(skipRN(contactName));
			sa.setContactPhone(skipRN(contactPhone));
			sa.setGroupID(skipRN(groupID));
			sa.setGroupName(skipRN(groupName));
			sa.setIncoterm(skipRN(incoterm));
			sa.setIndustry(skipRN(industry));
			sa.setInvoiceAddress(skipRN(invoiceAddress));
			sa.setInvoiceTitle(skipRN(invoiceTitle));
			sa.setMemo(skipRN(memo));
			sa.setOwnerID(skipRN(ownerID));
			sa.setOwnerName(skipRN(ownerName));
			sa.setPaymentCurrency(skipRN(paymentCurrency));
			sa.setPaymentTerm(skipRN(paymentTerm));
			sa.setPricingDataCatrgory(skipRN(pricingDataCatrgory));
			sa.setServiceAddress(skipRN(serviceAddress));
			sa.setServiceEmail(skipRN(serviceEmail));
			sa.setServiceFax(skipRN(serviceFax));
			sa.setServiceName(skipRN(serviceName));
			sa.setServicePhone(skipRN(servicePhone));
			sa.setServiceHours(skipRN(serviceHours));
			sa.setServiceMemo(skipRN(serviceMemo));

			sa.setShipProvince(province);
			sa.setShipCity(city);
			sa.setShipArea(district);
			sa.setShipContact(shipContact);
			sa.setShipZip(shipZip);
			sa.setShipAddr(shipAddr);
			sa.setShipPhone(shipPhone);
			sa.setIsScm(isScm);
			// 供应商地址
			sa.setCompanyProvince(coprovince);
			sa.setCompanyCity(cocity);
			sa.setCompanyArea(codistrict);
			sa.setCompanyZip(cozip);
			sa.setBoToWHDate(Integer.parseInt(boToWHDate));// BO到倉天數
			sa.setBoPoType(poType);
			sa.setDevPmId(pm);
			// 退(换)货地址
			sa.setIsSelfShip(isSelfShip);
			sa.setIsReturnSupplier(isReturnSupplier);
			sa.setReturnContact(returnContact);
			if ("== 选择省 ==".equals(returnProvince)) {
				sa.setReturnProvince("");
			} else {
				sa.setReturnProvince(returnProvince);
			}
			if ("== 选择城市 ==".equals(returnCity)) {
				sa.setReturnCity("");
			} else {
				sa.setReturnCity(returnCity);
			}
			if ("== 选择地区 ==".equals(returnArea)) {
				sa.setReturnArea("");
			} else {
				sa.setReturnArea(returnArea);
			}
			sa.setReturnAddr(returnAddr);
			sa.setReturnZip(returnZip);
			sa.setReturnPhone(returnPhone);
			if ("Y".equals(isSelfShip) && "Y".equals(isReturnSupplier)) {
				if (StringUtils.isBlank(returnContact) || StringUtils.isBlank(returnProvince)
						|| StringUtils.isBlank(returnCity) || StringUtils.isBlank(returnArea) || StringUtils.isBlank(returnAddr)
						|| StringUtils.isBlank(returnZip) || StringUtils.isBlank(returnPhone)) {
					addActionError("退（换）货资料不完整");
					return "update";
				} else {
					supplierApplyService.saveOrUpdate(sa);
				}
			} else {
				supplierApplyService.saveOrUpdate(sa);
			}

		} catch (CoreException e) {
			// TODO Auto-generated catch block
			logger.info("err:{}", e.fillInStackTrace());
			e.printStackTrace();
			throw new RuntimeException(e);
		}
		addActionError("储存成功!!");
		return "update";
	}

	public String bodate() throws Exception {
		CommonCriteria criteria = new CommonCriteria();
		criteria.addEq("fromPROVINCE", coprovince);
		List<BOToWHDate> bOToWHDates = bOToWHDateService.getList(0, -1, criteria, null);
		if (bOToWHDates.size() > 0) {
			jsonResult = bOToWHDates.get(0).getToWHDate().toString();
		} else {
			jsonResult = "";
		}
		return "bodate";
	}

	// iamlazy
	private String iamlazy;

	/**
	 * @return the iamlazy
	 */
	public String getIamlazy() {
		return iamlazy;
	}

	/**
	 * @param iamlazy the iamlazy to set
	 */
	public void setIamlazy(String iamlazy) {
		this.iamlazy = iamlazy;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getShipContact() {
		return shipContact;
	}

	public void setShipContact(String shipContact) {
		this.shipContact = shipContact;
	}

	public String getShipZip() {
		return shipZip;
	}

	public void setShipZip(String shipZip) {
		this.shipZip = shipZip;
	}

	public String getShipAddr() {
		return shipAddr;
	}

	public void setShipAddr(String shipAddr) {
		this.shipAddr = shipAddr;
	}

	public String getShipPhone() {
		return shipPhone;
	}

	public void setShipPhone(String shipPhone) {
		this.shipPhone = shipPhone;
	}

	public String getIsScm() {
		return isScm;
	}

	public void setIsScm(String isScm) {
		this.isScm = isScm;
	}

	public String getCoprovince() {
		return coprovince;
	}

	public void setCoprovince(String coprovince) {
		this.coprovince = coprovince;
	}

	public String getCocity() {
		return cocity;
	}

	public void setCocity(String cocity) {
		this.cocity = cocity;
	}

	public String getCodistrict() {
		return codistrict;
	}

	public void setCodistrict(String codistrict) {
		this.codistrict = codistrict;
	}

	public String getCozip() {
		return cozip;
	}

	public void setCozip(String cozip) {
		this.cozip = cozip;
	}

	public String getBoToWHDate() {
		return boToWHDate;
	}

	public void setBoToWHDate(String boToWHDate) {
		this.boToWHDate = boToWHDate;
	}

	public String getPoType() {
		return poType;
	}

	public void setPoType(String poType) {
		this.poType = poType;
	}

	public String getJsonResult() {
		return jsonResult;
	}

	public void setJsonResult(String jsonResult) {
		this.jsonResult = jsonResult;
	}

	public List<User> getUsers() {
		return users;
	}

	public void setUsers(List<User> users) {
		this.users = users;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	public String getPm() {
		return pm;
	}

	public void setPm(String pm) {
		this.pm = pm;
	}

	@Override
	public void prepare() throws Exception {
		clearErrorsAndMessages();
		// 找出所有ｐｍ的user
		if (null == users) {
			users = userService.getByRole(Role.Default.PM.name(), Role.Type.OTHER);
		}
		// 找出付款銀行所在地
		if (null == paymentBankAreaMenu) {
			paymentBankAreaMenu = menuService.get("PaymentBank.Area");
		}
	}

	public Menu getPaymentBankAreaMenu() {
		return paymentBankAreaMenu;
	}

	public String getPaymentBankArea() {
		return paymentBankArea;
	}

	public void setPaymentBankAreaMenu(Menu paymentBankAreaMenu) {
		this.paymentBankAreaMenu = paymentBankAreaMenu;
	}

	public void setPaymentBankArea(String paymentBankArea) {
		this.paymentBankArea = paymentBankArea;
	}

	public String getIsSelfShip() {
		return isSelfShip;
	}

	public void setIsSelfShip(String isSelfShip) {
		this.isSelfShip = isSelfShip;
	}

	public String getIsReturnSupplier() {
		return isReturnSupplier;
	}

	public void setIsReturnSupplier(String isReturnSupplier) {
		this.isReturnSupplier = isReturnSupplier;
	}

	public String getReturnContact() {
		return returnContact;
	}

	public void setReturnContact(String returnContact) {
		this.returnContact = returnContact;
	}

	public String getReturnProvince() {
		return returnProvince;
	}

	public void setReturnProvince(String returnProvince) {
		this.returnProvince = returnProvince;
	}

	public String getReturnCity() {
		return returnCity;
	}

	public void setReturnCity(String returnCity) {
		this.returnCity = returnCity;
	}

	public String getReturnArea() {
		return returnArea;
	}

	public void setReturnArea(String returnArea) {
		this.returnArea = returnArea;
	}

	public String getReturnAddr() {
		return returnAddr;
	}

	public void setReturnAddr(String returnAddr) {
		this.returnAddr = returnAddr;
	}

	public String getReturnZip() {
		return returnZip;
	}

	public void setReturnZip(String returnZip) {
		this.returnZip = returnZip;
	}

	public String getReturnPhone() {
		return returnPhone;
	}

	public void setReturnPhone(String returnPhone) {
		this.returnPhone = returnPhone;
	}
}